﻿using Exceptionless.Json;

namespace ZilLion.Service.Core.WebSocket
{
    public static class SocketMessageType
    {
        public static readonly string CLINET_CONNECTED = "CLINET_CONNECTED";
        public static readonly string CLINET_DISCONNECTED = "CLINET_DISCONNECTED";
        public static readonly string CLINET_UNACCESS = "CLINET_UNACCESS";
        public static readonly string SERVER_ERROR = "SERVER_ERROR";
        public static readonly string STRATEGY_NOTFOUND = "STRATEGY_NOTFOUND";
    }


    public class SocketMessage
    {
        [JsonProperty("messageId")]
        public string MessageId { get; set; }
        [JsonProperty("messageType")]
        public string MessageType { get; set; }
        [JsonProperty("data")]
        public string Data { get; set; }
    }
}